package com.oasen.learn.usercenter.config;

import org.springframework.context.annotation.Condition;
import org.springframework.context.annotation.ConditionContext;
import org.springframework.context.annotation.Profile;
import org.springframework.core.type.AnnotatedTypeMetadata;

import com.oasen.learn.usercenter.annotation.State;

public class StateCondition implements Condition{

	@Override
	public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {
		
		return metadata.isAnnotated(State.class.getName());
	}

}
